const api = {
    login: { // 登录
        url: '/login',
        method: 'POST'
    },
    getUserInfo: { // 获取当前登录用户信息
        url: '/getUserinfo',
        method: 'GET'
    },
    //登出
    signout: {
        url: '/logout',
        method: 'GET'
    },
    getProtocol: { //获取网站相关协议
        url: '/getProtocol',
        method: 'GET'
    },
    //获取专利数
    getPatentCount: {
        url: '/statistic/getPatentCount',
        method: 'GET'
    },
    //需求与商品发布走势
    getReleaseTrend: {
        url: '/statistic/releaseTrend',
        method: 'GET'
    },
    //获取图片验证码
    getCaptchaCode: {
        url: '/getCaptchaCode',
        method: 'GET'
    },
    //注册校验手机号码是否可用
    isPhoneExist: {
        url: '/isPhoneExist',
        method: 'GET'
    },
    //获取注册短信验证码,返回发送验证码次数，达到三次则显示图片验证码并校验图片验证码
    getSmsCodeForSignUp: {
        url: '/getSmsCodeForSignUp',
        method: 'GET'
    },
    //注册
    setPasswordForSignUp: {
        url: '/setPasswordForSignUp',
        method: 'POST'
    },
    //校验短信验证码，返回随机验证码，随机验证码用于修改忘记密码
    checkSmsCodeForSignUp: {
        url: '/checkSmsCodeForSignUp',
        method: 'GET'
    },
    //修改忘记密码，需要调用校验短信验证码后返回的随机码
    changePwdForForgetPwd: {
        url: '/changePwdForForgetPwd',
        method: 'PUT'
    },
    //搜索
    searchAll: {
        url: '/search/global',
        method: 'POST'
    },
    //获取热门商品
    topGoodsImagesByHits: {
        url: '/search/topGoodsImagesByHits',
        method: 'POST'
    },
    //获取相关需求
    topDemandsByHits: {
        url: '/search/topDemandsByHits',
        method: 'POST'
    },
    //获取商品页详情
    getGoodsInfo: {
        url: '/search/getGoodsInfo',
        method: 'GET'
    },
    //根据商品id查询联系号码
    getPhoneByGoodsId: {
        url: '/search/getPhoneByGoodsId',
        method: 'GET'
    },
    //获取需求页详情
    getDetailByDemandId: {
        url: '/search/getDetailByDemandId',
        method: 'GET'
    },
    //根据需求id查询联系号码
    getPhoneByDemandId: {
        url: '/search/getPhoneByDemandId',
        method: 'GET'
    },
    getShopDetailsById: {
        //根据店铺id获取店铺详情
        url: '/shop/getShopDetailByShopId',
        method: 'GET'
    },

    getShopPageListOrderByHot: {
        //根据店铺获取热门推荐商品（根据设置热门、发布时间排序）
        url: '/shop/getShopPageListOrderByHot',
        method: 'GET'
    },

    getGoodsPageListByShopId: {
        //根据shopid分页搜索商品
        url: '/shop/getGoodsPageListByShopId',
        method: 'GET'
    },

    getInformationById: {
        //根据ID获取资讯详情
        url: '/PortalInformation/getInformationById',
        method: 'GET'
    },

    getPageInformation: {
        //根据分类id分页查询
        url: '/PortalInformation/getPageInformation',
        method: 'GET'
    },

    getTopInformation: {
        //资讯上半部分
        url: '/PortalInformation/getTopInformation',
        method: 'GET'
    },

    getTopTypeInformation: {
        //资讯下半部分
        url: '/PortalInformation/getTopTypeInformation',
        method: 'GET'
    },
    getSmsCodeForForgetPwd: {
        //获取验证码
        url: '/getSmsCodeForForgetPwd',
        method: 'GET'
    },
    checkSmsCodeForForgetPwd: {
        //校验验证码
        url: '/checkSmsCodeForForgetPwd',
        method: 'GET'
    },
    applyAgent: {
        //申请商品代理
        url: '/portalGoodsAgent/applyForAgent',
        method: 'POST'
    },
    getAssociatedGoods: {
        //查询可撮合的商品
        url: '/search/getAssociatedGoods',
        method: 'GET'
    },
    makeMatch: {
        //撮合商品
        url: '/search/makeMatch',
        method: 'PUT'
    },
    identities: {
        //已获身份列表
        url: '/portalGoodsAgent/identities',
        method: 'GET'
    },

    getMessageCount: { //获取未读消息数量
        url: '/portalMessage/getMessageCount',
        method: 'GET'
    },

    handlePurchase: { //购买商品
        url: '/search/handlePurchase',
        method: 'PUT'
    },
    setCollectStatus: { //收藏商品or需求
        url: '/search/setCollectStatus',
        method: 'PUT'
    },
    judgeCollected: { //判断商品需求是否收藏
        url: '/search/judgeCollected',
        method: 'GET'
    },
    getPublicityDetail: { //获取公示详情
        url: '/publicity/getPublicityDetail',
        method: 'GET'
    },
    getPublicityListingsPage: {
        //公示列表查询
        url: '/publicity/getPublicityListingsPage',
        method: 'GET'
    },
    raiseObjections: {
        //提出异议
        url: '/publicity/raiseObjections',
        method: 'PUT'
    },
    //首页新闻公告
    getHomeNews: {
        url: '/PortalInformation/getInformationFour',
        method: 'GET'
    },
    //首页动态数据
    dynamicSummary: {
        url: '/PortalInformation/selectParam',
        method: 'GET'
    },
    //广告中心
    getAds: {
        url: '/ads/getAds',
        method: 'GET'
    },
    // 帮助中心-内容-详情查询
    getHelpContent: {
        url: '/helpCentre/getHelpContent',
        method: 'GET'
    },
    // 前台类目树形结构查询
    getHelpCategories: {
        url: '/helpCentre/getHelpCategories',
        method: 'GET'
    },

    //帮助中心-内容-根据二级类目id分页查询
    getHelpContentsByCategoryChildId: {
        url: '/helpCentre/getHelpContentsByCategoryChildId',
        method: 'GET'
    },
    // 帮助中心-内容-根据标题分页查询
    getHelpContentsByTitle: {
        url: '/helpCentre/getHelpContentsByTitle',
        method: 'GET'
    },
    // 帮助中心首页展示关键词
    selectHelgetHelpKeywordKeyword: {
        url: '/helpCentre/selectHelgetHelpKeywordKeyword',
        method: 'GET'
    },
    //帮助中心快捷引导二级类目以及内容展示
    getHelpGuideCategoryContents: {
        url: '/helpCentre/getHelpGuideCategoryContents',
        method: 'GET'
    }
};

module.exports = api;